package com.gopay.common.domain.vs;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.gopay.common.domain.BaseEntity;

/**
 * 验证码对象
 * 
 * @ValidCode.java
 * @author yaobo
 * @2013-5-15 下午03:35:04 www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "VS_VALIDCODE_DTL")
public class VsValidCodeDtl extends BaseEntity {

    /**
     * 
     */
    private static final long serialVersionUID = -6255164109408564654L;

    /**
     * 编号
     */
    @Id
    @Column(name = "SQ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "VS_VALIDCODE_DTL_SEQ")
    @SequenceGenerator(name = "VS_VALIDCODE_DTL_SEQ", allocationSize = 1, initialValue = 1, sequenceName = "VS_VALIDCODE_DTL_SEQ")
    private int id;

    /**
     * 验证类型
     */
    @Column(name = "VTYPE")
    private int type;

    /**
     * 业务编号
     */
    @Column(name = "VTARGET_ID")
    private String voID;

    /**
     * 验证码
     */
    @Column(name = "VCODE")
    private String code;

    /**
     * 过期时间(以秒为单位)
     */
    @Column(name = "EXPIR")
    private int expir;

    /**
     * 新增时间
     */
    @Column(name = "CREATED_TS")
    private Date created;

    /**
     * 修改时间
     */
    @Column(name = "LAST_UPD_TS")
    private Date modified;

    /**
     * 最后交易吗
     */
    @Column(name = "LAST_UPD_TRANCODE")
    private String lastUpdTranCode;

    public int getExpir() {
        return expir;
    }

    public void setExpir(int expir) {
        this.expir = expir;
    }

    public String getLastUpdTranCode() {
        return lastUpdTranCode;
    }

    public void setLastUpdTranCode(String lastUpdTranCode) {
        this.lastUpdTranCode = lastUpdTranCode;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getVoID() {
        return voID;
    }

    public void setVoID(String voID) {
        this.voID = voID;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getModified() {
        return modified;
    }

    public void setModified(Date modified) {
        this.modified = modified;
    }
}
